package xmlModel;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class DBSchema implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private List<DBTable> tables = new ArrayList<DBTable>();

	private String name;
	
	public List<DBTable> getTables() {
		return tables;
	}

	@XmlElement
	public void setTables(List<DBTable> tables) {
		this.tables = tables;
	}

	public String getName() {
		return name;
	}

	@XmlAttribute
	public void setName(String name) {
		this.name = name;
	}
}
